package com.yyjj.zixun.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yyjj.zixun.R;
import com.yyjj.zixun.entity.KuaiXunEntity;

public class KuaiXunAdapter extends BaseQuickAdapter<KuaiXunEntity,BaseViewHolder> {

    public KuaiXunAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, KuaiXunEntity item) {
        helper.setText(R.id.tv_time,item.getPost_date_format());
        helper.setText(R.id.tv_title,item.getTitle());
        helper.setText(R.id.tv_content,item.getContent());
    }
}
